package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.UserLeaveVoiceRoomDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserLeaveVoiceRoomDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserLeaveVoiceRoomDO record);

    int insertSelective(UserLeaveVoiceRoomDO record);

    UserLeaveVoiceRoomDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserLeaveVoiceRoomDO record);

    int updateByPrimaryKey(UserLeaveVoiceRoomDO record);

    Long getParticipateCount(@Param("streamerId") Integer streamerId,
                             @Param("rebateType") Integer rebateType,
                             @Param("tableNameList") List<String> tableNameList,
                             @Param("startTime") String startTime,
                             @Param("endTime") String endTime,
                             @Param("robotIdList")List<Long> robotIdList);

    Long getParticipateCountEx(@Param("streamerId") Integer streamerId,
                               @Param("rebateType") Integer rebateType,
                               @Param("tableNameList") List<String> tableNameList,
                               @Param("startTime") String startTime,
                               @Param("endTime") String endTime,
                               @Param("robotIdList")List<Long> robotIdList);
}